package ystp.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import ystp.model.Fujianb;
import ystp.model.FujianbExample;
import ystp.model.FujianbKey;

public interface FujianbMapper {

    List<Map<String, Object>> findPinguiAll(@Param("xiangmuid") String ppxiangmuId, @Param("drugname") String ppDrugname,
                                            @Param("startindex") int ppStartIndex,
                                            @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> findShengchanqiyeByPinguiResult(@Param("xiangmuid") String ppxiangmuId,
                                                              @Param("xuhao")String ppPinguiOne,@Param("userid")String ppuserId);

    Object getPinguiCount(@Param("xiangmuid") String ppxiangmuId,
                          @Param("startindex") int ppStartIndex,
                          @Param("pagesize") int ppPageSize);

    Object countPass(@Param("xiangmuid")String ppXiangmuId,@Param("userid")String ppUserId);

    int countByExample(FujianbExample example);

    int deleteByExample(FujianbExample example);

    int deleteByPrimaryKey(FujianbKey key);

    int insert(Fujianb record);

    int insertSelective(Fujianb record);

    List<Fujianb> selectByExample(FujianbExample example);

    Fujianb selectByPrimaryKey(FujianbKey key);

    int updateByExampleSelective(@Param("record") Fujianb record, @Param("example") FujianbExample example);

    int updateByExample(@Param("record") Fujianb record, @Param("example") FujianbExample example);

    int updateByPrimaryKeySelective(Fujianb record);

    int updateByPrimaryKey(Fujianb record);

    int insertBatch(List<Fujianb> list);

    List<Map<String, Object>> selectPingui(@Param("xiangmuid") String xiangmuid, @Param("startindex") int ppStartIndex,
                                           @Param("pagesize") int ppPageSize);

    List<Map<String, Object>> selectPingui27(@Param("xiangmuid") String xiangmuid, @Param("startindex") int ppStartIndex,
                                           @Param("pagesize") int ppPageSize);

    Integer countPingui(@Param("xiangmuid") String xiangmuid);

    Integer countNumber(@Param("xiangmuid") String xiangmuid);

    List<Map<String, Object>> findShengchanqiyeByPingui(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);
    List<Map<String, Object>> findShengchanqiye(@Param("xiangmuid") String ppxiangmuId,@Param("beuzhu1") String mmPinguiOne);
    List<Map<String, Object>> findqianzibiaoResult(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);

    List<Map<String, Object>> findPinzhongByPingui(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne,@Param("userid")String ppuserId);
    List<Map<String, Object>> findPinzhongByPinguiHuizong(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);
    List<Map<String, Object>> findPinzhongByPinguiView(@Param("xiangmuid") String ppxiangmuId,@Param("xuhao") String mmPinguiOne);

}